<?php foreach($rows as $row): ?>
	<?php $attributs = 'class="mws-form"'?>
	<?php echo form_open('admin/settings/update', $attributs) ?>

	<div class="mws-panel grid_8">
		<div class="mws-panel-body no-padding">
			<div class="mws-panel-header">
				<span>Edit Menu</span>
			</div>
			<div class="mws-form-row">
				<label class="mws-form-label">Nama Setting</label>
				<div class="mws-form-item">
					<span class="error"><?php echo form_error('nama_setting'); ?></span>
					<?php echo form_input('nama_setting', $row->nama_setting, 'class="small"'); ?>
				</div>
			</div>
			<div class="mws-form-row">
				<label class="mws-form-label">Key</label>
				<div class="mws-form-item">
					<span class="error"><?php echo form_error('key'); ?></span>
					<?php echo form_input('key', $row->key, 'class="mws-form-col-1-8"'); ?>
				</div>
			</div>
			<div class="mws-form-row">
				<label class="mws-form-label">Table</label>
				<div class="mws-form-item">
					<span class="error"><?php echo form_error('table'); ?></span>
					<?php echo form_input('table', $row->table, 'class="small"'); ?>
				</div>
			</div>
			<div class="mws-form-row">
				<label class="mws-form-label">Id table</label>
				<div class="mws-form-item">
					<span class="error"><?php echo form_error('id_table'); ?></span>
					<?php echo form_input('id_table', $row->id_table, 'class="mws-form-col-1-8"'); ?>
				</div>
			</div>
		</div>
	</div>

	<div class="mws-panel grid_8">
		<div class="mws-button-row">
			<?php echo form_hidden('id_setting', $row->id_setting); ?>
			<?php echo form_submit('submit', 'Submit', 'class="btn btn-danger"'); ?>
			<?php echo anchor('admin/settings/index', 'Back', 'class="btn"'); ?>
		</div>
	</div>
<?php endforeach ?>

<?php echo form_close()?>